package practice;

public class practice07 {

	public static void main(String[] args) {
		int i = 100;
		for (;i<1000;i++) {
			int head = i/100;
			int mid = (i-100*head)/10;
			int tail = i-100*head-10*mid;
			if(i == Math.pow(head,3)+Math.pow(mid,3)+Math.pow(tail,3)) {
				System.out.println(i);
			}
		}
	}

}
